﻿#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLuaBase.lua_CSFunction;
#endif

using XLua;
using System.Collections.Generic;


namespace XLua.CSObjectWrap
{
    using Utils = XLua.Utils;
    public class YoozooManagersResourceManagerV2RuntimeUMTResourceWrap 
    {
        public static void __Register(RealStatePtr L)
        {
			ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			System.Type type = typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource);
			Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
			
			
			
			
			
			
			Utils.EndObjectRegister(type, L, translator, null, null,
			    null, null, null);

		    Utils.BeginClassRegister(type, L, __CreateInstance, 26, 12, 8);
			Utils.RegisterFunc(L, Utils.CLS_IDX, "Initialize", _m_Initialize_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "HotUpdateStart", _m_HotUpdateStart_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "Shutdown", _m_Shutdown_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "HasAsset", _m_HasAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAsset", _m_LoadAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAssetRapid", _m_LoadAssetRapid_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAssetWithPriority", _m_LoadAssetWithPriority_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadAssetRapidWithPriority", _m_LoadAssetRapidWithPriority_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadGameObjectAutoRefAsset", _m_LoadGameObjectAutoRefAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadGameObjectAutoRefAssetRapid", _m_LoadGameObjectAutoRefAssetRapid_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAsset", _m_UnloadAsset_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadAssetImmediately", _m_UnloadAssetImmediately_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadBinaryFromFileSystem", _m_LoadBinaryFromFileSystem_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadScene", _m_LoadScene_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "UnloadScene", _m_UnloadScene_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBinaryPath", _m_GetBinaryPath_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetBinaryLength", _m_GetBinaryLength_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "LoadBinary", _m_LoadBinary_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetResourceAllAssets", _m_GetResourceAllAssets_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetAllSubAssets", _m_GetAllSubAssets_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSubAssets", _m_GetSubAssets_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateHandler", _m_GenerateHandler_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "InitPool", _m_InitPool_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "PreloadFileSystems", _m_PreloadFileSystems_xlua_st_);
            Utils.RegisterFunc(L, Utils.CLS_IDX, "GetPersistentDataPathInGame", _m_GetPersistentDataPathInGame_xlua_st_);
            
			
            
			Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Resource", _g_get_Resource);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "WebRequest", _g_get_WebRequest);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Initializated", _g_get_Initializated);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "isEditorMode", _g_get_isEditorMode);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "currentVariant", _g_get_currentVariant);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DispatchDownloadFinish", _g_get_DispatchDownloadFinish);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DispatchDownloadStart", _g_get_DispatchDownloadStart);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "DispatchLoadResourceHanging", _g_get_DispatchLoadResourceHanging);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OnAddDownload", _g_get_OnAddDownload);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OnDownloadSuccess", _g_get_OnDownloadSuccess);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "OnDownloadFailed", _g_get_OnDownloadFailed);
            Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Buffer", _g_get_Buffer);
            
			Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "currentVariant", _s_set_currentVariant);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DispatchDownloadFinish", _s_set_DispatchDownloadFinish);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DispatchDownloadStart", _s_set_DispatchDownloadStart);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "DispatchLoadResourceHanging", _s_set_DispatchLoadResourceHanging);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "OnAddDownload", _s_set_OnAddDownload);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "OnDownloadSuccess", _s_set_OnDownloadSuccess);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "OnDownloadFailed", _s_set_OnDownloadFailed);
            Utils.RegisterFunc(L, Utils.CLS_SETTER_IDX, "Buffer", _s_set_Buffer);
            
			
            Utils.RegisterFunc(L, Utils.CLS_IDX, "New", __CreateInstanceNew);
			Utils.EndClassRegister(type, L, translator);
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstance(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource does not have a constructor!");
        }

        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int __CreateInstanceNew(RealStatePtr L)
        {
            return LuaAPI.luaL_error(L, "Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource does not have a constructor!");
        }

        
		
        
		
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Initialize_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Initialize(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_HotUpdateStart_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.HotUpdateStart(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_Shutdown_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    Yoozoo.Managers.ResourceManagerV2.Runtime.ShutdownType _type;translator.Get(L, 1, out _type);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Shutdown( _type );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_HasAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.HasAsset( _assetName );
                        translator.PushYoozooManagersResourceManagerV2FrameworkResourceHasAssetResult(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler _handler = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.GetObject(L, 3, typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _handler );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _priority, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _priority, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _priority );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 5)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 5);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _priority, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _priority, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset( _assetName, _assetType, _priority );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAsset!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetRapid_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler _handler = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.GetObject(L, 3, typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _assetType, _handler );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 4);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _priority, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _priority, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _priority );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 5&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 5)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 5);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _assetType, _priority, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 4);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _assetType, _priority, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid( _assetName, _assetType, _priority );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapid!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetWithPriority_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler _handler = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.GetObject(L, 4, typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetWithPriority( _assetName, _assetType, _priority, _handler );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadAssetRapidWithPriority_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    int _priority = LuaAPI.xlua_tointeger(L, 3);
                    Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler _handler = (Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler)translator.GetObject(L, 4, typeof(Yoozoo.Managers.ResourceManagerV2.Runtime.LoadAssetHandler));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadAssetRapidWithPriority( _assetName, _assetType, _priority, _handler );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadGameObjectAutoRefAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAsset( _assetName, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAsset( _assetName, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAsset( _assetName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAsset!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadGameObjectAutoRefAssetRapid_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAssetRapid( _assetName, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAssetRapid( _assetName, _loadAssetSuccessCallback );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAssetRapid( _assetName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadGameObjectAutoRefAssetRapid!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadAsset_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& translator.Assignable<object>(L, 1)) 
                {
                    object _asset = translator.GetObject(L, 1, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAsset( _asset );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAsset( _assetName, _assetType );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAsset( _assetName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAsset!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadAssetImmediately_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& translator.Assignable<object>(L, 1)) 
                {
                    object _asset = translator.GetObject(L, 1, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAssetImmediately( _asset );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type>(L, 2)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    System.Type _assetType = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAssetImmediately( _assetName, _assetType );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAssetImmediately( _assetName );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadAssetImmediately!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadBinaryFromFileSystem_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinaryFromFileSystem( _binaryAssetName );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer>(L, 2)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer _buffer = (Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer));
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinaryFromFileSystem( _binaryAssetName, _buffer );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinaryFromFileSystem!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadScene_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks>(L, 2)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks _loadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadScene( _sceneAssetName, _loadSceneCallbacks );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks>(L, 3)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks _loadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks)translator.GetObject(L, 3, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadScene( _sceneAssetName, _priority, _loadSceneCallbacks );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks>(L, 2)&& translator.Assignable<object>(L, 3)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks _loadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks));
                    object _userData = translator.GetObject(L, 3, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadScene( _sceneAssetName, _loadSceneCallbacks, _userData );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 4&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks>(L, 3)&& translator.Assignable<object>(L, 4)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    int _priority = LuaAPI.xlua_tointeger(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks _loadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks)translator.GetObject(L, 3, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadSceneCallbacks));
                    object _userData = translator.GetObject(L, 4, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadScene( _sceneAssetName, _priority, _loadSceneCallbacks, _userData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadScene!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_UnloadScene_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks>(L, 2)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks _unloadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadScene( _sceneAssetName, _unloadSceneCallbacks );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks>(L, 2)&& translator.Assignable<object>(L, 3)) 
                {
                    string _sceneAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks _unloadSceneCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.UnloadSceneCallbacks));
                    object _userData = translator.GetObject(L, 3, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadScene( _sceneAssetName, _unloadSceneCallbacks, _userData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.UnloadScene!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBinaryPath_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetBinaryPath( _binaryAssetName );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    bool _storageInReadOnly;
                    bool _storageInFileSystem;
                    string _relativePath;
                    string _fileName;
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetBinaryPath( _binaryAssetName, out _storageInReadOnly, out _storageInFileSystem, out _relativePath, out _fileName );
                        LuaAPI.lua_pushboolean(L, gen_ret);
                    LuaAPI.lua_pushboolean(L, _storageInReadOnly);
                        
                    LuaAPI.lua_pushboolean(L, _storageInFileSystem);
                        
                    LuaAPI.lua_pushstring(L, _relativePath);
                        
                    LuaAPI.lua_pushstring(L, _fileName);
                        
                    
                    
                    
                    return 5;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetBinaryPath!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetBinaryLength_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetBinaryLength( _binaryAssetName );
                        LuaAPI.xlua_pushinteger(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_LoadBinary_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
			    int gen_param_count = LuaAPI.lua_gettop(L);
            
                if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks>(L, 2)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks _loadBinaryCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinary( _binaryAssetName, _loadBinaryCallbacks );
                    
                    
                    
                    return 0;
                }
                if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks>(L, 2)&& translator.Assignable<object>(L, 3)) 
                {
                    string _binaryAssetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks _loadBinaryCallbacks = (Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks)translator.GetObject(L, 2, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadBinaryCallbacks));
                    object _userData = translator.GetObject(L, 3, typeof(object));
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinary( _binaryAssetName, _loadBinaryCallbacks, _userData );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
            return LuaAPI.luaL_error(L, "invalid arguments to Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.LoadBinary!");
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetResourceAllAssets_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _resourceName = LuaAPI.lua_tostring(L, 1);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetResourceAllAssets( _resourceName );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetAllSubAssets_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    object _rootAsset = translator.GetObject(L, 1, typeof(object));
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetAllSubAssets( _rootAsset );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetSubAssets_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    object _rootAsset = translator.GetObject(L, 1, typeof(object));
                    System.Type _type = (System.Type)translator.GetObject(L, 2, typeof(System.Type));
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetSubAssets( _rootAsset, _type );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GenerateHandler_xlua_st_(RealStatePtr L)
        {
		    try {
            
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
            
            
            
                
                {
                    string _assetName = LuaAPI.lua_tostring(L, 1);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback _loadAssetSuccessCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetSuccessCallback>(L, 2);
                    Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback _loadAssetFailureCallback = translator.GetDelegate<Yoozoo.Managers.ResourceManagerV2.Framework.Resource.LoadAssetFailureCallback>(L, 3);
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GenerateHandler( _assetName, _loadAssetSuccessCallback, _loadAssetFailureCallback );
                        translator.Push(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_InitPool_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.InitPool(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_PreloadFileSystems_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.PreloadFileSystems(  );
                    
                    
                    
                    return 0;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _m_GetPersistentDataPathInGame_xlua_st_(RealStatePtr L)
        {
		    try {
            
            
            
                
                {
                    
                        var gen_ret = Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.GetPersistentDataPathInGame(  );
                        LuaAPI.lua_pushstring(L, gen_ret);
                    
                    
                    
                    return 1;
                }
                
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            
        }
        
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Resource(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Resource);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_WebRequest(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.WebRequest);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Initializated(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Initializated);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_isEditorMode(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushboolean(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.isEditorMode);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_currentVariant(RealStatePtr L)
        {
		    try {
            
			    LuaAPI.lua_pushstring(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.currentVariant);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DispatchDownloadFinish(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchDownloadFinish);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DispatchDownloadStart(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchDownloadStart);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_DispatchLoadResourceHanging(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchLoadResourceHanging);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnAddDownload(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnAddDownload);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnDownloadSuccess(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnDownloadSuccess);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_OnDownloadFailed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnDownloadFailed);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _g_get_Buffer(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    translator.Push(L, Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Buffer);
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 1;
        }
        
        
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_currentVariant(RealStatePtr L)
        {
		    try {
                
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.currentVariant = LuaAPI.lua_tostring(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DispatchDownloadFinish(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchDownloadFinish = translator.GetDelegate<System.Action>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DispatchDownloadStart(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchDownloadStart = translator.GetDelegate<System.Action<string>>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_DispatchLoadResourceHanging(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.DispatchLoadResourceHanging = translator.GetDelegate<System.Action>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnAddDownload(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnAddDownload = translator.GetDelegate<System.Action<string, int>>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnDownloadSuccess(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnDownloadSuccess = translator.GetDelegate<System.Action<string>>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_OnDownloadFailed(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.OnDownloadFailed = translator.GetDelegate<System.Action<string>>(L, 1);
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
        [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
        static int _s_set_Buffer(RealStatePtr L)
        {
		    try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
			    Yoozoo.Managers.ResourceManagerV2.Runtime.UMTResource.Buffer = (Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer)translator.GetObject(L, 1, typeof(Yoozoo.Managers.ResourceManagerV2.Framework.FileSystem.FileSystemBuffer));
            
            } catch(System.Exception gen_e) {
                return LuaAPI.luaL_error(L, $"c# exception: {gen_e}\n{Yoozoo.Framework.Managers.LuaManager.GetTraceBack()}");
            }
            return 0;
        }
        
		
		
		
		
    }
}
